package com.ychug.framework.business.service;

import com.ychug.service.cms.entity.CmsSiteEntity;
import com.ychug.service.cms.service.ICmsSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CmsSiteService {
    @Autowired
    private ICmsSiteService iCmsSiteService;


    public CmsSiteEntity getCmsSiteEntity(){
        CmsSiteEntity cmsSiteEntity = new CmsSiteEntity();
        cmsSiteEntity.setIsMaster("0");
        cmsSiteEntity = iCmsSiteService.selectSiteList(cmsSiteEntity).get(0);
        return cmsSiteEntity;
    }

}
